package com.yaowk.common.validator;

import com.jfinal.core.Controller;
import com.yaowk.common.kit.Constant;
import com.yaowk.common.kit.I18nKit;

/**
 * id必填验证
 *
 * @authc yaowk
 * 2017/4/19
 */
public class RequiredIdValidator extends BaseValidator {
    @Override
    protected void validate(Controller c) {
        validateInteger("id", 1, Integer.MAX_VALUE, ERROR_CODE, I18nKit.get("param_error", Constant.COMMON_MODULE, c));
    }
}
